#ifndef _SCRIPTTIMEACTION_H
#define _SCRIPTTIMEACTION_H

#include <string>
#include "timeaction.h"
#include "script/alhelper.h"

namespace timerlib
{
//能够发送事件到脚本系统的定时动作
class ScriptTimeAction : public ResideTimeAction
{
public:
    ScriptTimeAction(const std::string& aFileName, const std::string& aFuncName, int aIntrival);
    void                setScriptFileName(const std::string& aFileName);
    void                setScriptFuncName(const std::string& aFuncname);
    void                setScriptHandler(const std::string& aFileName, const std::string& aFuncname);
    virtual void        onCreate();
    virtual void        onArrivalTime();

private:

    std::string        m_scriptFileName;
    std::string        m_scriptFuncName;
};
}

#endif
